package com.edushare.common.vo;

import com.edushare.common.vo.auto._UserDeptLink;

public class UserDeptLink extends _UserDeptLink {

	private static final long serialVersionUID = -1772377616761312086L;
	
	public static final int PRIMARY_ADMIN           = 10;
	public static final int SECONDARY_ADMIN         = 20;
	public static final int TEACHER                 = 30;
	public static final int STUDENT                 = 40;
	
	public static final int STATUS_INVITED          = 10;
	public static final int STATUS_ACTIVE           = 20;
	public static final int STATUS_REMOVED          = 30;
	
	public static String getRoleAsString(Integer roleType) {
		if(roleType == PRIMARY_ADMIN){
			return "Administrator";
		}else if(roleType == SECONDARY_ADMIN){
			return "Secondary Administrator";
		}else if(roleType == TEACHER){
			return "Faculty";
		}else if(roleType == STUDENT){
			return "Student";
		}
		return null;
	}
}
